<template>
  <div class="update-gender">
    <van-picker
      title="标题"
      show-toolbar
      :columns="columns"
      @confirm="onConfirm"
      @cancel="$emit('close')"
      @change="onChange"
    />
  </div>
</template>

<script>
export default {
  name: 'UpdateGender',
  data () {
    return {
      columns: ['男', '女']
    }
  },
  methods: {
    // 确认事件
    onConfirm (value, index) {},
    // 改变事件
    onChange (picker, value, index) {}
  }
}
</script>

<style lang="less" scoped>

</style>
